<%@page import="com.neiquan.backstage.pub.bsc.dao.po.Entrepreneur"%>
<%@page import="com.neiquan.backstage.resourec_manage.EntrepreneurService"%>
<%@page import="com.neiquan.backstage.common.util.Configs"%>
<%@page import="java.util.List"%>
<%@page import="com.neiquan.backstage.common.util.SpringContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
Integer entrepreneurId = Integer.valueOf(request.getParameter("id"));
ApplicationContext appCtx = SpringContextUtils.getApplicationContext();
EntrepreneurService entrepreneurService = appCtx.getBean(EntrepreneurService.class);
Entrepreneur entrepreneur = entrepreneurService.queryById(entrepreneurId);
pageContext.setAttribute("entrepreneur", entrepreneur);
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>公司资料</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0">
		<section class="mt activesignup">
			<section class="tc">
				<form id="companyform" class="fom" action="api/allianceEntrepreneur/edit">
					<section>
						<p class="addrvisitor-title pd">基本信息</p>
						<section class="line"></section>
						<section class="common_bg">
							<section class="perfect company-perfect pd">
								<p class="form-inpt-p">
									<label>团队/公司名称</label><input class="inpt" form="companyform" required name="name" type="text" value="${entrepreneur.name}" placeholder="请输入您的公司全称"/>
								</p>
								<p class="form-inpt-p c">
									<label class="logo-label">团队/公司LOGO</label>
									<!--<span class="logo-right relative">
										<input class="inpt logo-inpt" form="companyform" required name="logo" type="file" />
										<span class="logo-img-wrap">
											<img class="company-img" src="<%=entrepreneur.getLoge() %>" alt="" />
										</span>
									</span>-->
									<div style="clear:both;width:180px;height:100px;border:1px solid #ccc;border-radius:5px;background:orange;">
										<img src="img/logo.png" width="100px" height="100px" alt="" class="fl logo_div">
										<input type="file" name="fileToUpload" class="fileToUpload zbj-upload-btn" onchange="fileSelected();" style="display:none;">
									</div>
								</p>
								<p class="form-inpt-p">
									<label class="vistor-instuct">团队/公司简介</label><textarea name="description" class="inpt vistor-instuct-text" form="companyform"  placeholder="请您的输入团队或公司的简介..." /><%=entrepreneur.getDescription() %></textarea>
								</p>
							</section>
						</section>
					</section>
					<section class="common_bg mt">
						<p class="addrvisitor-title pd">联系信息</p>
						<section class="line"></section>
						<section>
							<section class="perfect pd">
								<p class="form-inpt-p">
									<label>联系人</label><input class="inpt" form="companyform" required name="linkman" type="text" value="<%=entrepreneur.getLinkman()%>"placeholder="请输入您的真实姓名" />
								</p>
								<p class="form-inpt-p">
									<label>手机号</label><input value="<%=entrepreneur.getPhone()%>" class="inpt" form="companyform" required name="phone" type="tel" pattern="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)" placeholder="请输入您的手机号码" />
								</p>
								<p class="form-inpt-p">
									<label>邮件</label><input value="<%=entrepreneur.getMail()%>" class="inpt" form="companyform" required name="mail" type="email" placeholder="请输入您的邮箱号码" />
								</p>
								<p class="form-inpt-p">
									<label>联系地址</label><input value="<%=entrepreneur.getAddress()%>" class="inpt" form="companyform" required name="address" type="text" placeholder="请输入您的联系地址" />
								</p>
							</section>
						</section>
					</section>
					<section class="common_bg mt">
						<p class="addrvisitor-title pd">项目信息</p>
						<section class="line"></section>
						<section>
							<section class="perfect pd">
								<section class="form-inpt-p relative">
									<label>项目类别</label><input value="<%=entrepreneur.getProjectType()%>" name="projectType" class="inpt project-type" form="companyform" required type="text" placeholder="互联网金融" />
									<ul class="project-type-select area_select" style="display: none">
										<li>移动互联网</li>
										<li>电子商务</li>
										<li>新媒体</li>
										<li>数据服务</li>
										<li>其他</li>
									</ul>
								</section>
								<p class="form-inpt-p">
									<label class="vistor-instuct">项目介绍</label><textarea name="projectDesc"  class="inpt vistor-instuct-text" form="companyform"  placeholder="最多输入200字（创意来源、可行性、商业模式等相关介绍）..." /><%=entrepreneur.getProjectDesc()%></textarea>
								</p>
								<p class="form-inpt-p">
									<label class="team-num">目前团队人数</label><input value="<%=entrepreneur.getTeamSize()%>" class="inpt" form="companyform" required name="teamSize" type="text" pattern="\d" placeholder="请输入您的团队人数" />
								</p>
							</section>
						</section>
					</section>
					<button class="btn fom-submit company-btn" type="submit">提交申请</button>
				</form>
			</section>
		</section>
</body>
<script>
			$(function(){
				var zhubajieH = $('.copyprint-top-right').height();
				$('.copyprint-top').height(zhubajieH);
				$('.copyprint-bottom').height(window.innerHeight - zhubajieH - 60);
			})
		</script>
<script src="js/jquery.min.js"></script>		
<script src="js/responsive.js"></script>
</html>
